package com.soft.sitegenerator.form;

import java.util.ArrayList;
import java.util.Collection;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.soft.sitegenerator.Component;
import com.soft.sitegenerator.DataBaseComponent;
import com.soft.sitegenerator.business.hibernate.Template;

public class AsignTemplateEditForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

    private Component component=new DataBaseComponent();

    private Collection templates = new ArrayList();

	private Long idTemplate = null;

	private Collection webSites = new ArrayList();

	private Long idSitePages = null;

	private Collection users = new ArrayList();

	private Long idUsers = null;

	private Template asignTemplate = (Template) component.getBean("templatesHib");
	
    public void reset(ActionMapping arg0, HttpServletRequest arg1) {
        idSitePages = null;
    }

	public Template getAsignTemplate() {
		return asignTemplate;
	}

	public void setAsignTemplate(Template asignTemplate) {
		this.asignTemplate = asignTemplate;
	}

	public Long getIdSitePages() {
		return idSitePages;
	}

	public void setIdSitePages(Long idSitePages) {
		this.idSitePages = idSitePages;
	}

	public Long getIdTemplate() {
		return idTemplate;
	}

	public void setIdTemplate(Long idTemplate) {
		this.idTemplate = idTemplate;
	}

	public Long getIdUsers() {
		return idUsers;
	}

	public void setIdUsers(Long idUsers) {
		this.idUsers = idUsers;
	}

	public Collection getTemplates() {
		return templates;
	}

	public void setTemplates(Collection templates) {
		this.templates = templates;
	}

	public Collection getUsers() {
		return users;
	}

	public void setUsers(Collection users) {
		this.users = users;
	}

	public Collection getWebSites() {
		return webSites;
	}

	public void setWebSites(Collection webSites) {
		this.webSites = webSites;
	}

}